﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pilot_Edit.aspx.cs" Inherits="Vehicle.Web.Pages.Pilot.Pilot_Edit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>物流管理系统</title>
    <link href="../../Style/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
   <td width="17" valign="top" background="../../Images/mail_leftbg.gif"><img src="../../images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="../../Images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">驾驶员管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="../../images/mail_rightbg.gif"><img src="../../images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td height="71" valign="middle" background="../../images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9"><table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td height="13" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td class="left_txt">当前位置：驾驶员管理--<a href="Main.aspx">驾驶员信息维护</a> --编辑驾驶员信息</td>
          </tr>
          <tr>
            <td height="20"><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
              <tr>
                <td></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" height="55" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td width="10%" height="55" valign="middle"><img src="../../images/user-info.gif" width="54" height="55"></td>
                <td width="90%" valign="top"><span class="left_txt2">在这里，您可以根据您的业务要求，编辑驾驶员信息！如要进行更换车队或车辆请到<a href="Main.aspx" class="left_txt3" >驾驶员信息维护</a>页进行退车<br />
                <span class="left_txt3">只有经过退车手续的驾驶员才可进行更换车队或车辆</span>
                </span></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="nowtable">
              <tr>
                <td class="left_bt2">&nbsp;&nbsp;&nbsp;&nbsp;驾驶员信息填写</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">驾驶员入录时间：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                    <asp:TextBox ID="txt_P_Time" runat="server" Enabled="false"></asp:TextBox></td>
                <td width="45%" height="30"  class="left_txt">驾驶员入录时间(不能修改)</td>
              </tr>
			  <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">所属车队：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                    <asp:DropDownList ID="drop_M_ID" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="drop_M_ID_SelectedIndexChanged" >
                    </asp:DropDownList>
                </td>
                <td width="45%" height="30"  class="left_txt">请选择该驾驶员所属的车队名称</td>
              </tr>
               <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">所属车辆：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                    <asp:DropDownList ID="drop_V_ID" runat="server" >
                    </asp:DropDownList>
                </td>
                <td width="45%" height="30"  class="left_txt">根据车牌号选择所使用的车辆(只显示还末有驾驶员的车辆)</td>
              </tr>
                <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">驾驶员编号：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_P_Num" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="REV_P_Num" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_P_Num" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator><asp:RequiredFieldValidator ID="RFV_P_Num" runat="server" ErrorMessage="不能为空!" ControlToValidate="txt_P_Num" Display="Dynamic"></asp:RequiredFieldValidator></td>
                <td width="45%" height="30"  class="left_txt">按需求进行车辆入库编号（不能为空)</td>
              </tr>
              <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">驾驶员姓名：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_P_Name" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RFV_txt_P_Name" runat="server" ErrorMessage="不能为空!" ControlToValidate="txt_P_Name" Display="Dynamic"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="REV_txt_P_Name" runat="server" ErrorMessage="只能输入中文!" ControlToValidate="txt_P_Name" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">驾驶员姓名(不能为空)</td>
              </tr>
               <tr>
                <td height="30" align="right" class="left_txt2">性别：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2">
                    <asp:DropDownList ID="drop_P_Sex" runat="server">
                    <asp:ListItem Text="男" Value="1"></asp:ListItem>
                    <asp:ListItem Text="女" Value="2"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td height="30" class="left_txt">驾驶员的性别</td>
              </tr>
              <tr>
                <td height="30" align="right" class="left_txt2">年龄：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2"><asp:TextBox ID="txt_P_Age" runat="server"></asp:TextBox>岁<asp:RegularExpressionValidator ID="REV_P_Age" runat="server" ErrorMessage="只能输入数字!" ControlToValidate="txt_P_Age" Display="Dynamic" ValidationExpression="[0-9]+"></asp:RegularExpressionValidator></td>
                <td height="30" class="left_txt">驾驶员的年龄(只能为数字)</td>
              </tr>
              <tr>
                <td height="30" align="right" class="left_txt2">车龄：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2"><asp:TextBox ID="txt_P_CarAge" runat="server"></asp:TextBox>年<asp:RegularExpressionValidator ID="REV_P_CarAge" runat="server" ErrorMessage="只能输入数字!" ControlToValidate="txt_P_CarAge" Display="Dynamic" ValidationExpression="[0-9]+"></asp:RegularExpressionValidator></td>
                <td height="30" class="left_txt">驾驶员的开车的年龄(只能为数字)</td>
              </tr>
                <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">驾驶证编号：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_P_License" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="REV_P_License" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_P_License" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator><asp:RequiredFieldValidator ID="RFV_P_License" runat="server" ErrorMessage="不能为空!" ControlToValidate="txt_P_License" Display="Dynamic"></asp:RequiredFieldValidator></td>
                <td width="45%" height="30"  class="left_txt">驾驶证编号（不能为空)</td>
              </tr>
                <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">联系电话：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_P_Tel" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="REV_P_Tel" runat="server" ErrorMessage="请输入正确的电话号码!" ControlToValidate="txt_P_Tel" Display="Dynamic" ValidationExpression="^([0-9]{2,4}\-?)?[0-9]{7,8}$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">驾驶员联系电话(只能为数字)</td>
              </tr>
               <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">驾驶员地址：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2"><asp:TextBox ID="txt_P_Address" runat="server"></asp:TextBox><asp:RegularExpressionValidator ID="REV_P_Address" runat="server" ErrorMessage="只能输入中英文或数字结合!" ControlToValidate="txt_P_Address" Display="Dynamic" ValidationExpression="^[\u4e00-\u9fa5|a-z|A-Z|0-9]+$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">驾驶员地址</td>
              </tr>
               <tr>
                <td width="20%" height="30" align="right"  class="left_txt2">驾驶员身份证：</td>
                <td width="3%" >&nbsp;</td>
                <td width="32%" height="30"  class="left_txt2">
                    <asp:TextBox ID="txt_P_CardID" runat="server" Width="219px"></asp:TextBox><asp:RegularExpressionValidator ID="REV_P_CardID" runat="server" ErrorMessage="请输入正确身份证号码!" ControlToValidate="txt_P_CardID" Display="Dynamic" ValidationExpression="^(([0-9]{14}[x0-9]{1})|([0-9]{17}[x0-9]{1}))$"></asp:RegularExpressionValidator></td>
                <td width="45%" height="30"  class="left_txt">驾驶员身份证</td>
              </tr>
           
               <tr>
                <td height="30" align="right" class="left_txt2">是否有承运任务：</td>
                <td>&nbsp;</td>
                <td height="30" class="left_txt2">
                    <asp:DropDownList ID="drop_P_Transit" runat="server" Width="68px">
                    <asp:ListItem Text="是" Value="1"></asp:ListItem>
                      <asp:ListItem Text="否" Value="0"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td height="30" class="left_txt">程序会依据车俩当前情况进行判定,如无特殊需要请勿修改!</td>
              </tr>
              <tr>
                <td height="30" align="right"  class="left_txt2">备注：</td>
                <td >&nbsp;</td>
                <td height="30" >
                    <asp:TextBox ID="txt_P_Note" runat="server" TextMode="MultiLine" Height="135px" 
                        Width="230px"></asp:TextBox></td>
                <td height="30"  class="left_txt">驾驶员备注信息</td>
              </tr>
                </table> </ContentTemplate>
                </asp:UpdatePanel>
		</td>
              </tr>
        </table>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">     
            <tr>
              <td height="30" colspan="3" align="center" class="left_txt4">&nbsp;<asp:HiddenField ID="hf_Set" runat="server" Value="1" />
                  <asp:HiddenField ID="hf_P_LastTime" runat="server" /><asp:HiddenField ID="hf_P_Num" runat="server" /><asp:HiddenField ID="hf_V_ID" runat="server" /><div visible="false" runat="server" id="d_Show" >驾驶员信息已经修改是否需要刷新数据?<a href="#" onclick="javascript:window.location.href = window.location.href;">点击刷新</a>&nbsp;&nbsp;(点击添加执行当前编辑)</div></td>
            </tr>
            <tr>
              <td width="50%" height="30" align="right"><asp:Button ID="btn_Add" runat="server" 
                      Text="修改" onclick="btn_Add_Click" /></td>
              <td width="6%" height="30" align="right">&nbsp;</td>
              <td width="44%" height="30"><input type="reset" value="重置" name="B12" /></td>
            </tr>
          </table></td>
      </tr>
    </table></td>
    <td background="../../images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="middle" background="../../images/mail_leftbg.gif"><img src="../../images/buttom_left2.gif" width="17" height="17" /></td>
      <td height="17" valign="top" background="../../images/buttom_bgs.gif"><img src="../../images/buttom_bgs.gif" width="17" height="17" /></td>
    <td background="../../images/mail_rightbg.gif"><img src="../../images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
    </form>
</body>
</html>

